package com.dazzle.core.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/jsp")
public class JspController{
	@RequestMapping
	public String jsp(HttpServletRequest request,HttpServletResponse reponse){
		String view = request.getParameter("view");
		if(StringUtils.isNotEmpty(view))
			return view;
		return "index";
	}
}